package com.syedu.day03.homework;

/**
 * description：一张纸的厚度为0.1毫米,对着多少次可以超过珠穆拉玛峰的高度(8848米)?
 * @author Administrator
 * @date 2022/3/8 17:04
 */
public class Himalayan {
    public static void main(String[] args) {
        double paperHeight = 0.0001;
        double hillHeight = 8848;
        int count = 0;
        for (; paperHeight <= hillHeight; count++) {
            paperHeight *= 2;
        }
        System.out.println("一共对折:" + count + "次.");
    }
}